#include <stdio.h>
//局部变量的作用域是变量所在的局部范围
int main()
{ 
    {
        int a = 10;
        printf("%d\n",a);  //10
    }
    printf("%d\n",a);  //报错
    return 0;
}

int main()
{ 
    int a = 10;
    {
        printf("%d\n",a);  //10
    }
    printf("%d\n",a);  //10
    return 0;
}